using System;

namespace XY
{
	/// <summary>
	/// Summary description for XFactory.
	/// </summary>
	public class XFactory
	{
		public X getClass(int spec) {
			switch(spec) {
				case 1:
					return new XY();
				case 2:
					return new XZ();
				default:
					return new X();

			}
		}
	}
}
